package com.woniuxy03;

import java.util.Arrays;

/**
 * @author 作者
 * @create 2025-11-03 16:34
 */
public class Test03 {
    public static void main(String[] args) {
        Student[] students=new Student[3];
        students[0]=new Student(1,"zs",11);
        students[1]=new Student(2,"ls",15);
        students[2]=new Student(3,"ww",13);
//        System.out.println("排序前：");
//        System.out.println(Arrays.toString(students));
//        Arrays.sort(students);
//        System.out.println("排序后：");
//        System.out.println(Arrays.toString(students));

        System.out.println((Comparable) students[0].compareTo(students[1]));
    }
}
